import request from '@/utils/request'

// 查询资料下载列表
export function listDanwland(query) {
  return request({
    url: '/system/danwland/list',
    method: 'get',
    params: query
  })
}

// 查询资料下载详细
export function getDanwland(fileId) {
  return request({
    url: '/system/danwland/' + fileId,
    method: 'get'
  })
}

// 新增资料下载
export function addDanwland(data) {
  return request({
    url: '/system/danwland',
    method: 'post',
    data: data
  })
}

// 修改资料下载
export function updateDanwland(data) {
  return request({
    url: '/system/danwland',
    method: 'put',
    data: data
  })
}

// 删除资料下载
export function delDanwland(fileId) {
  return request({
    url: '/system/danwland/' + fileId,
    method: 'delete'
  })
}
